package com.guojiaming.interview.second.bean;

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

public class PlayerInfo {
    private int id;
    private String avatar;
    private String nickname;
    private String teamName;
    private String teamRole;
    private int number;
    private int appearances;
    private int starting;
    private long time;
    private int point;
    private int rebound;
    private int assists;
    private int steal;
    private int cap;
    private int shots;
    private int hit;
    private double hitRate;
    private int threeCap;
    private int threeShots;
    private int threeHit;
    private double threeHitRate;

    private int position;


    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public String getTeamRole() {
        return teamRole;
    }

    public void setTeamRole(String teamRole) {
        this.teamRole = teamRole;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public int getAppearances() {
        return appearances;
    }

    public void setAppearances(int appearances) {
        this.appearances = appearances;
    }

    public int getStarting() {
        return starting;
    }

    public void setStarting(int starting) {
        this.starting = starting;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    public int getPoint() {
        return point;
    }

    public void setPoint(int point) {
        this.point = point;
    }

    public int getRebound() {
        return rebound;
    }

    public void setRebound(int rebound) {
        this.rebound = rebound;
    }

    public int getAssists() {
        return assists;
    }

    public void setAssists(int assists) {
        this.assists = assists;
    }

    public int getSteal() {
        return steal;
    }

    public void setSteal(int steal) {
        this.steal = steal;
    }

    public int getCap() {
        return cap;
    }

    public void setCap(int cap) {
        this.cap = cap;
    }

    public int getShots() {
        return shots;
    }

    public void setShots(int shots) {
        this.shots = shots;
    }

    public int getHit() {
        return hit;
    }

    public void setHit(int hit) {
        this.hit = hit;
    }

    public double getHitRate() {
        return hitRate;
    }

    public void setHitRate(double hitRate) {
        this.hitRate = hitRate;
    }

    public int getThreeCap() {
        return threeCap;
    }

    public void setThreeCap(int threeCap) {
        this.threeCap = threeCap;
    }

    public int getThreeShots() {
        return threeShots;
    }

    public void setThreeShots(int threeShots) {
        this.threeShots = threeShots;
    }

    public int getThreeHit() {
        return threeHit;
    }

    public void setThreeHit(int threeHit) {
        this.threeHit = threeHit;
    }

    public double getThreeHitRate() {
        return threeHitRate;
    }

    public void setThreeHitRate(double threeHitRate) {
        this.threeHitRate = threeHitRate;
    }

    private String getTeamInfo() {
        return String.format(Locale.CHINESE, "%s  %s #%d", getTeamName(), getTeamRole(), getNumber());
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    public static List<PlayerInfo> testData() {
        List<PlayerInfo> data = new ArrayList<>();
        for (int i = 0; i < 10; i++) {
            PlayerInfo playerInfo = new PlayerInfo();
            playerInfo.setNickname(String.format(Locale.CHINESE, "张三%d", i));
            playerInfo.setId(i);
            playerInfo.setAvatar("https://ss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=2483543097,3459309155&fm=26&gp=0.jpg");
            playerInfo.setTeamName("球队名称");
            playerInfo.setTeamRole("后卫");
            playerInfo.setNumber(i);
            data.add(playerInfo);
        }
        return data;
    }

    public List<String> convertData() {
        List<String> data = new ArrayList<>();
        data.add("111");
        data.add("222");
        data.add("333");
        data.add("444");
        data.add("555");
        data.add("666");
        data.add("777");
        data.add("888");
        data.add("999");
        return data;
    }

    public static List<String> testTabData() {
        List<String> data = new ArrayList<>();
        data.add("111");
        data.add("222");
        data.add("333");
        data.add("444");
        data.add("555");
        data.add("666");
        data.add("777");
        data.add("888");
        data.add("999");
        return data;
    }

}
